<div class="xsy_workflow_bar">
    <div class="xsy_approval_bar_content">
        {{if userFunctions.v == 1}}
            <div class="xsy_approval_bar_status">
                <span>当前阶段：</span>
                <span class="xsy_workflow_stage" title="{{stageName}}">{{stageName}}</span>
                {{if candidateIds && candidateIds.length > 0}}
                    <span>操作人：</span>
                    <a href="javascript:;" class="xsy_workflow_operator" title="{{each candidateIds as candidateId i}} {{candidateId}} {{/each}}">
                        {{each candidateIds as candidateId i}}{{if i < 2}}{{candidateId}} {{/if}}{{/each}}{{if candidateIds.length > 2}} ...{{/if}}
                     </a>
                 {{/if}}
            </div>
            {{if taskId && instanceId}}
                <div class="xsy_approval_bar_flow">
                    <a href="javascript:;" class="xsy_workflow_bar_check">查看工作流程</a>
                    <div class="xsy_approval_wrap" style="display: none;">
                        <div class="xsy_approval_wrap_toparrow">
                            <div class="xsy_approval_wrap_toparrow_inner"></div>
                        </div>
                        <div class="xsy_approval_process_list">
                            <div class="xsy_approval_list_inner">
                                <ul class="xsy_approval_ul">
                                    {{each approvalHistory as history i}}
                                        {{if history.result != -1}}
                                            <li>
                                                <div class="xsy_submit_time">
                                                    <span class="xsy_passed_approval"></span>
                                                    <span class="xsy_passed_time">{{history.activityName}} {{history.approvalTime}}</span>
                                                </div>
                                                <div class="xsy_submit_peopel_img">
                                                    <a target="_blank" href="/final/user.action?uid={{users[history.approvalUserId].id}}">
                                                        <img src="{{users[history.approvalUserId].icon}}"/>
                                                    </a>
                                                </div>
                                                <div class="xsy_submit_peopel">
                                                    <span class="dblock approval_people_opinion">
                                                        <a href="javascript::">{{users[history.approvalUserId].name}}</a>
                                                        <span>{{history.operateTypeName}}</span>
                                                    </span>
                                                </div>
                                            </li>
                                        {{/if}}
                                    {{/each}}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            {{/if}}
        {{/if}}
        <div class="xsy_approval_bar_operate">
            {{each transitionJson as transition i}}
                {{if transition.btnName}}
                    <a href="javascript:;" {{if transition.btnName.length > 2 }} class="xsy_approval_bar_submit spacing" {{/if}} act="workflowBar" belongId="{{belongId}}" objectId="{{objectId}}" entityTypeId="{{entityTypeId}}" approvalBindingName="{{approvalBindingName}}" toTask="{{transition.toTask}}" sendMessage="{{sendMessage}}" taskId="{{taskId}}" instanceId="{{instanceId}}" transitionId="{{transition.transitionId}}" btnName="{{transition.btnName}}">{{transition.btnName}}</a>
                {{/if}}
            {{/each}}
            <!--<a href="javascript:;" class="more"></a>-->
        </div>
    </div>
</div>